{% extends "base_sondage.html" %}
{% load i18n %}

	{% block header %}
	    <script type="text/javascript" src="{{STATIC_URL}}javascript/jquery.js"></script>
	    <script type="text/javascript" src="{{STATIC_URL}}javascript/display_stars.js"></script>
		<link rel="stylesheet" media="screen" type="text/css" title="Essai" href="{{STATIC_URL}}css/stars.css" />
		<script type="text/javascript">
			$(function() {
    			$('span.stars').stars();
			});
		</script>
    {% endblock %}
	
	{% block titre %}{% trans "Résultat du sondage" %}{% endblock %}

	{% block menu %}	
		<ul id="navigation">
			<li> <img src="{{STATIC_URL}}images/26.png" alt=""/>{% trans "Civilité" %}</li>
			<li> <img src="{{STATIC_URL}}images/27.png" alt=""/>{% trans "Invités" %}</li>
			<li> <img src="{{STATIC_URL}}images/32.png" alt=""/>{% trans "Goûts" %}</li>
			<li> <img src="{{STATIC_URL}}images/29.png" alt=""/>{% trans "Réponse" %}</li>
			<li> <img src="{{STATIC_URL}}images/30.png" alt=""/>{% trans "Résultat" %}</li>
		</ul>
	{% endblock %}

	{% block content %}
		<div id='table_result'>
			<table border='1'>
			<caption>{% trans "Résultats" %}</caption>
			{% for rep in tous_les_choix %}
				<tr>
					<th>{{ rep.0 }}</th>
					{% for crit in rep.1 %}
					<th>{{ crit.0}}</th>
					<th><span class="stars">{{ crit.1}}</span></th>
					{% endfor %}
				</tr>
			{% endfor %}
			</table>
		</div>
	{% endblock %}
    
 